/**
 * 
 */
package bookshop.dao;

import java.util.List;

import bookshop.domain.Customer;
import bookshop.service.helper.CustomerQueryHelper;

/**
 * @author Administrator
 *
 */
public interface CustomerDao {

	//新用户注册
	void addCustomer(Customer customer);
	//根据ID取到用户信息
	Customer getCustomerById(String customerId);

	
	//很据用户ID以及用户的评论数对评论等级进行更新
	void updateMoodLevelByCount(Long count,String custId);

	
	//显示用户信息
	List<Customer> loadall();

	
	//根据查询条件查询相应的用户
	List<Customer> getCustomerByCondition(CustomerQueryHelper helper);
	
	//根据条件查询总的用户数
	Long countCustomerByCondition(CustomerQueryHelper helper);
	
	//根据pageno和查询条件查询用户信息
	List<Customer> getScopedCustomers(CustomerQueryHelper helper,int startIndex,int fetchSize);
	
	//修改用户个人信息
	void updateCustomer(Customer customer);

}
